"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const NedbDao_1 = require("./NedbDao");
class JobModel extends NedbDao_1.NedbModel {
    constructor(job) {
        super(job.getId());
        this.url = job.getUrl();
        this.queueName = job.queueName;
        this.tryNum = job.tryNum;
        this.status = job.status;
        this.createTime = job.getCreateTime();
        this.updateTime = new Date().getTime();
        this.jobSerialize = JSON.stringify(job);
    }
}
exports.JobModel = JobModel;
class JobDao extends NedbDao_1.NedbDao {
}
exports.JobDao = JobDao;
